package BiShi.first;

import java.lang.reflect.Array;
import java.util.*;
import java.util.stream.Collectors;

class Main {
    public static void main(String[] args) {
            List<String> strings = Arrays.asList("abc", "", "bc", "efg", "abcd","", "jkl");
            List<String> filtered = strings.stream().filter(string -> !string.isEmpty()).collect(Collectors.toList());
        System.out.println(filtered);

    }
}







